<template>
  <div>
   <container :title="title" class="container">
      <div class="listC">
        <div class="navHead">
            <div>已处理</div>
            <div>待处理</div>
         </div>
          <div class="navHead">
            <div style="font-size:16px;" class="haved">{{summary.haved}}</div>
            <div style="font-size:16px;"  class="waited">{{summary.waited}}</div>
         </div>
         <div v-for="({label,status},index) in serviceData" :key="index" class="navBody">
           <div class="haved">{{label}}</div>
           <div :class="[status==1?'haved':'waited']" v-text="status==1?'已处理':'待处理'"></div>
        </div>
      </div>
    </container>
  </div>
</template>

<script>
import injectRootInstance from '@/components/datav/mixins/injectRootInstance'
export default {
  mixins: [injectRootInstance],
  computed: {
    title () {
      return this.rootThis.serviceData.title
    },
    summary () {
      return this.rootThis.serviceData.summary
    },
    serviceData() {
      return this.rootThis.serviceData.data
    }
  }
}
</script>

<style scoped>
.container{
}
.navHead{
  align-content: center;
  align-items: center;
  display:flex;
  justify-content: space-around;
}
.navBody{
  align-content: center;
  align-items: center;
  display:flex;
  justify-content: space-around;
  margin-top:10px;
}
.navBody>div{
   font-size: 14px;
}
.navHead div{
  font-size: 10px;
}
.haved{
  color: #4CFFFC;
}
.waited{
  color: #FF9B55;
}
.listC{
  overflow-y: scroll;
  margin-top:10px;
   margin-bottom:10px;
}
</style>
